//
//  WYRMessage.m
//  10-21-快速搭建框架
//
//  Created by lkx0 on 16/10/28.
//  Copyright © 2016年 lkx0. All rights reserved.
//

#import "WYRMessage.h"

@implementation WYRMessage
-(instancetype)initWithDict:(NSDictionary *)dict{
    if(self=[super init]){
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}
+(instancetype)messageWithDict:(NSDictionary *)dict{
    return [[self alloc]initWithDict:dict];
}

//重写description方法，改变打印的内容
-(NSString *)description{
    NSString * str=[NSString stringWithFormat:@"text:%@,time:%@,type:%d",self.text,self.time,self.type];
    return str;
}



@end
